<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
			window.onload=function(){
				var oP=document.getElementsByTagName("p")[0];
				console.log(oP.innerHTML);// <a href="#">我是超链接</a>
				console.log(oP.innerText);//我是超链接
				//oP.innerHTML="<span></span>"
				var oA=document.getElementsByTagName("a")[0].innerHTML;
				//document.getElementsByTagName("a")[0].innerHTML="点我";
			}
		</script>
	</head>
	<body>
		<p><a href="#">我是超链接</a></p>
	</body>
</html>
